package com.example.testactivity0316;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class FifthActivity5 extends AppCompatActivity {
    public Button back5;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fifth5);
        initView();//记得调用
    }
    public void initView(){
        back5=findViewById(R.id.back5);
        back5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
                //Intent intent = new Intent(SecondActivity2.this,MainActivity.class);
                //startActivity(intent);
            }
        });


}}